<?php
/********************************
Filename:		showIpImg.php
Last Writer:	wp1998@e21.cn
Last Time:		2004-2-18
*********************************/
include ("jpgraph.php");
include ("jpgraph_pie.php");
include ("jpgraph_pie3d.php");

$data = array(1069042706,41868295,1135548);

$graph = new PieGraph(400,200,"auto");
$graph->SetShadow();

$graph->title->Set("IP Protocol");
$graph->title->SetFont(FF_FONT1,FS_BOLD);

$p1 = new PiePlot3D($data);
$p1->ExplodeSlice(1);
$p1->SetCenter(0.35);
$p1->SetLegends(array("TCP","UDP","ICMP"));

$graph->Add($p1);
$graph->Stroke();

?>
